CC = g++
CFLAGS = -Wall -g -pedantic
PROG = main.exe
LIBS   = -lglut -lGLU -lGL -lGLEW 
SRCS = main.cpp BSplineCubSurf.o BSpline.o

all: $(PROG) ejecutar clean

BSpline.o: BSpline.cpp BSpline.h
	$(CC) $(CFLAGS) -c BSpline.cpp

BSplineCubSurf.o: BSplineCubSurf.cpp BSplineCubSurf.h
	$(CC) $(CFLAGS) -c BSplineCubSurf.cpp

ejecutar: $(PROG)
	./main.exe

$(PROG):$(SRCS)
	$(CC) $(CFLAGS) -o $(PROG) $(SRCS) $(LIBS)

clean:
	rm -f *.o
	rm -f $(PROG)
